import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
export const columns: BasicColumn[] = [
  {
    title: 'ID',
    dataIndex: 'id',
    width: 50,
    align: 'center',
  },
  {
    title: '问题',
    dataIndex: 'title',
    width: 200,
    align: 'center',
  },
  {
    title: '答案',
    dataIndex: 'content',
    width: 300,
    align: 'center',
  }
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'id',
    label: '问题ID',
    component: 'Input',
    colProps: { span: 8 },
  },
  {
    field: 'title',
    label: '问题',
    component: 'Input',
    colProps: { span: 8 },
  },
];

//新增弹窗form字段
export const formSchema: FormSchema[] = [
  {
    label: 'ID',
    field: 'id',
    component: 'Input',
    defaultValue: 0,
    show: false,
  },
  {
    field: 'title',
    label: '问题',
    component: 'Input',
    required: true,
  },
  {
    field: 'content',
    label: '答案',
    component: 'InputTextArea',
    componentProps:{
     style:'height:300px'
    },
    required: true,
  }
];
